/*******************************************************************************
 *
 * Copyright (c) 2001-2006 Primeton Technologies, Ltd.
 * All rights reserved.
 *
 * Created on Apr 11, 2008
 *******************************************************************************/
package com.primeton.eos.oss.model.newdataset.impl;

import com.primeton.eos.oss.model.newdataset.AfcRPartyRole;
import com.primeton.ext.data.sdo.DataUtil;
import com.primeton.ext.data.sdo.ExtendedDataObjectImpl;
import commonj.sdo.Type;

/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>AfcRPartyRoleImpl</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getId <em>Id</em> <desc>ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getPartyType <em>PartyType</em> <desc>参与者类型</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getPartyId <em>PartyId</em> <desc>参与者ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getRoleType <em>RoleType</em> <desc>角色类型</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getRoleId <em>RoleId</em> <desc>角色ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getBusinessObjId <em>BusinessObjId</em> <desc>业务对象ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getBusinessObjInstId <em>BusinessObjInstId</em> <desc>业务对象实例ID</desc>}</li>
 *   <li>{@link com.primeton.eos.oss.model.newdataset.impl.AfcRPartyRoleImpl#getIsFixed <em>IsFixed</em> <desc>是否固定 0：否 1：是</desc>}</li>
 * </ul>
 * </p>
 *
 * @extends ExtendedDataObjectImpl;
 *
 * @implements AfcRPartyRole;
 */

public class AfcRPartyRoleImpl extends ExtendedDataObjectImpl implements AfcRPartyRole {
	/**
	 * Comment for <code>serialVersionUID</code>
	 */
	private static final long serialVersionUID = 1L;

	public final static int INDEX_ID = 0;
	public final static int INDEX_PARTYTYPE = 1;
	public final static int INDEX_PARTYID = 2;
	public final static int INDEX_ROLETYPE = 3;
	public final static int INDEX_ROLEID = 4;
	public final static int INDEX_BUSINESSOBJID = 5;
	public final static int INDEX_BUSINESSOBJINSTID = 6;
	public final static int INDEX_ISFIXED = 7;
	public static final int SDO_PROPERTY_COUNT = 8;

	public static final int EXTENDED_PROPERTY_COUNT = -1;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public AfcRPartyRoleImpl() {
		this(TYPE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 */
	public AfcRPartyRoleImpl(Type type) {
		super(type);
	}

	protected void validate() {
		validateType(TYPE);
	}

	/**
	 * Returns the value of the '<em><b>Id</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>Id</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>Id</em>' attribute.
	 * @see #setId(java.lang.String)
	 */
	public String getId() {
		return DataUtil.toString(super.getByIndex(INDEX_ID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getId <em>Id</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>Id</em>' attribute.
	 * @see #getId()
	 */
	public void setId(String id) {
		super.setByIndex(INDEX_ID, id);
	}

	/**
	 * Returns the value of the '<em><b>PartyType</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>PartyType</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>PartyType</em>' attribute.
	 * @see #setPartyType(java.lang.String)
	 */
	public String getPartyType() {
		return DataUtil.toString(super.getByIndex(INDEX_PARTYTYPE, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getPartyType <em>PartyType</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>PartyType</em>' attribute.
	 * @see #getPartyType()
	 */
	public void setPartyType(String partyType) {
		super.setByIndex(INDEX_PARTYTYPE, partyType);
	}

	/**
	 * Returns the value of the '<em><b>PartyId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>PartyId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>PartyId</em>' attribute.
	 * @see #setPartyId(java.lang.String)
	 */
	public String getPartyId() {
		return DataUtil.toString(super.getByIndex(INDEX_PARTYID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getPartyId <em>PartyId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>PartyId</em>' attribute.
	 * @see #getPartyId()
	 */
	public void setPartyId(String partyId) {
		super.setByIndex(INDEX_PARTYID, partyId);
	}

	/**
	 * Returns the value of the '<em><b>RoleType</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>RoleType</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>RoleType</em>' attribute.
	 * @see #setRoleType(java.lang.String)
	 */
	public String getRoleType() {
		return DataUtil.toString(super.getByIndex(INDEX_ROLETYPE, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getRoleType <em>RoleType</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>RoleType</em>' attribute.
	 * @see #getRoleType()
	 */
	public void setRoleType(String roleType) {
		super.setByIndex(INDEX_ROLETYPE, roleType);
	}

	/**
	 * Returns the value of the '<em><b>RoleId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>RoleId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>RoleId</em>' attribute.
	 * @see #setRoleId(java.lang.String)
	 */
	public String getRoleId() {
		return DataUtil.toString(super.getByIndex(INDEX_ROLEID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getRoleId <em>RoleId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>RoleId</em>' attribute.
	 * @see #getRoleId()
	 */
	public void setRoleId(String roleId) {
		super.setByIndex(INDEX_ROLEID, roleId);
	}

	/**
	 * Returns the value of the '<em><b>BusinessObjId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>BusinessObjId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>BusinessObjId</em>' attribute.
	 * @see #setBusinessObjId(java.lang.String)
	 */
	public String getBusinessObjId() {
		return DataUtil.toString(super.getByIndex(INDEX_BUSINESSOBJID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getBusinessObjId <em>BusinessObjId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>BusinessObjId</em>' attribute.
	 * @see #getBusinessObjId()
	 */
	public void setBusinessObjId(String businessObjId) {
		super.setByIndex(INDEX_BUSINESSOBJID, businessObjId);
	}

	/**
	 * Returns the value of the '<em><b>BusinessObjInstId</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>BusinessObjInstId</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>BusinessObjInstId</em>' attribute.
	 * @see #setBusinessObjInstId(java.lang.String)
	 */
	public String getBusinessObjInstId() {
		return DataUtil.toString(super.getByIndex(INDEX_BUSINESSOBJINSTID, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getBusinessObjInstId <em>BusinessObjInstId</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>BusinessObjInstId</em>' attribute.
	 * @see #getBusinessObjInstId()
	 */
	public void setBusinessObjInstId(String businessObjInstId) {
		super.setByIndex(INDEX_BUSINESSOBJINSTID, businessObjInstId);
	}

	/**
	 * Returns the value of the '<em><b>IsFixed</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>IsFixed</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>IsFixed</em>' attribute.
	 * @see #setIsFixed(java.lang.String)
	 */
	public String getIsFixed() {
		return DataUtil.toString(super.getByIndex(INDEX_ISFIXED, true));
	}

	/**
	 * Sets the value of the '{@link com.primeton.eos.Test#getIsFixed <em>IsFixed</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>IsFixed</em>' attribute.
	 * @see #getIsFixed()
	 */
	public void setIsFixed(String isFixed) {
		super.setByIndex(INDEX_ISFIXED, isFixed);
	}


}